package cn.lanqiao.bigDate.service.data;

import cn.lanqiao.bigDate.entity.data.DataPbhouse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;


public interface DataPbhouseService {
    /**
     * 分页查询
     * @param page
     * @return
     */
    IPage<DataPbhouse> findByPage(Page<DataPbhouse> page, String searchDeptName);

    /**
     * 按id查询用户
     * @param id
     * @return
     */
    DataPbhouse findDataPbhouseOne(Long id);

    /**
     * 修改用户
     * @param dataPbhouse
     * @return
     */
    Boolean updateDataPbhouse(DataPbhouse dataPbhouse);

    /**
     * 保存用户
     * @param dataPbhouse
     * @return
     */
    Boolean saveDataPbhouse(DataPbhouse dataPbhouse);

    /**
     * 按id删除用户
     * @param ids 格式  id1,id2,id3
     * @return
     */
    Boolean deleteDataPbhouse(String ids);

    /**
     * 根据出版社名称模糊查询
     * @param name
     * @return
     */
    List<DataPbhouse> selectByPbhouseName(String name);
}
